import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;

public class Filee {
    public static void main(String[] args) {
        File file=new File("Day4\\bbb\\bbbb");
        try {
            FileOutputStream fileOutputStream=new FileOutputStream(file,true);
            byte[]bytes="Hello".getBytes();
            fileOutputStream.write(bytes,1,3);
        } catch (FileNotFoundException e) {
            e.printStackTrace();
        } catch (IOException e) {
             e.printStackTrace();
        }

    }
}
